
/*
class Student{
    private String name;
    private int phone;

    public String getName() {
        return name;
    }

    public int getPhone() {
        return phone;
    }

    public Student(String name, int phone) {
        this.name = name;
        this.phone = phone;
    }
}
*/
abstract class Animal1{
    abstract void eat();
}

class Dog1 extends Animal1{
    String name;

    public Dog1(String name) {
        this.name = name;
    }

    @Override
    public void eat() {
        System.out.println(name + "吃狗粮");
    }
}

public class Test2 {
    public static void main(String[] args) {
        /*Student student1 = new Student("xiaozhang",1930763);
        System.out.println(student1.getPhone());*/
        Animal1 dog = new Dog1("小七");
        dog.eat();
    }
}
